package com.ce.pms.customer.vo;

import java.util.Date;

import com.sitechasia.webx.core.model.IViewObject;
/**
 *
 * 功能描述: 封装客户管理的查询条件
 *
 * <p>
 * 版权所有：中企动力
 * <p>
 * 未经本公司许可，不得以任何方式复制或使用本程序任何部分
 *
 * @author <a href="malto:szyandawei@myce.net.cn">燕大为</a>
 * Created on 2008-5-22
 *
 */
public class CustSearchVO implements IViewObject {
	/**
	 * 客户ID
	 */
	private Long clientId;
	/**
	 * 房号ID列表
	 */
	private String houseIds;

	/**
	 * 房号搜索条件
	 */
	private Long houseId;

	/**
	 * 房号
	 */
	private String houseNumber;

	/**
	 * 住房姓名
	 */
	private String customerName;

	/**
	 * 住房类型
	 */
	private String customerType;

	/**
	 * 参与人类型
	 */
	private String participantType;

	/**
	 * 来访人员姓名
	 */
	private String callInPerson;

	/**
	 * 来访起始时间
	 */
	private String callInStartDate;

	/**
	 * 来访结束时间
	 */
	private String callInEndDate;

	/**
	 * 证件号码
	 */
	private String idNO;

	/**
	 * 联系电话
	 */
	private String telephone;

	/**
	 * 入住起始日期
	 */
	private String beginInDate;

	/**
	 * 只查有入住日期没搬出日期
	 */
	private Boolean onlyInDate=false;

	/**
	 * 入住截止日期
	 */
	private String endInDate;

	/**
	 * 搬出起始日期
	 */
	private String beginOutDate;

	/**
	 * 搬出截至日期
	 */
	private String endOutDate;

	/**
	 * 籍贯
	 */
	private String nativePlace;

	/**
	 * 兴趣爱好
	 */
	private String beInterestingIn;

	/**
	 * 职业
	 */
	private String profession;

	/**
	 * 排序字段
	 */
	private String orderString;

	/**
	 * 地址
	 */
	private String address;

	/**
	 * 联系人
	 */
	private String linkMan;

	/**
	 * 组织类型
	 */
	private String organizationType;


	/**
	 * 功能描述:返回排序的关键字，如asc,desc<br>
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2008-10-17<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public String getOrderKey(){
		if(null!=orderString && orderString.trim().length()>0){
			String[] orderStrs= orderString.split(" ");
			if(orderStrs.length>1)return orderStrs[1];
		}
		return "";
	}

	/**
	 * 功能描述:返回要排序的字段<br>
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2008-10-17<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public String getOrderName(){
		if(null!=orderString && orderString.trim().length()>0){
			String[] orderStrs= orderString.split(" ");
			if(orderStrs.length>=1)return orderStrs[0];
		}
		return null;
	}

	public String getAddress() {
		return address;
	}



	public void setAddress(String address) {
		this.address = address;
	}



	public String getBeginInDate() {
		return beginInDate;
	}



	public void setBeginInDate(String beginInDate) {
		this.beginInDate = beginInDate;
	}



	public String getBeginOutDate() {
		return beginOutDate;
	}



	public void setBeginOutDate(String beginOutDate) {
		this.beginOutDate = beginOutDate;
	}



	public String getBeInterestingIn() {
		return beInterestingIn;
	}



	public void setBeInterestingIn(String beInterestingIn) {
		this.beInterestingIn = beInterestingIn;
	}



	public String getCallInEndDate() {
		return callInEndDate;
	}



	public void setCallInEndDate(String callInEndDate) {
		this.callInEndDate = callInEndDate;
	}



	public String getCallInPerson() {
		return callInPerson;
	}



	public void setCallInPerson(String callInPerson) {
		this.callInPerson = callInPerson;
	}



	public String getCallInStartDate() {
		return callInStartDate;
	}



	public void setCallInStartDate(String callInStartDate) {
		this.callInStartDate = callInStartDate;
	}



	public String getEndInDate() {
		return endInDate;
	}



	public void setEndInDate(String endInDate) {
		this.endInDate = endInDate;
	}



	public String getEndOutDate() {
		return endOutDate;
	}



	public void setEndOutDate(String endOutDate) {
		this.endOutDate = endOutDate;
	}


	public String getIdNO() {
		return idNO;
	}



	public void setIdNO(String idNO) {
		this.idNO = idNO;
	}



	public String getLinkMan() {
		return linkMan;
	}



	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}



	public String getNativePlace() {
		return nativePlace;
	}



	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}



	public String getOrderString() {
		return orderString;
	}



	public void setOrderString(String orderString) {
		this.orderString = orderString;
	}



	public String getOrganizationType() {
		return organizationType;
	}



	public void setOrganizationType(String organizationType) {
		this.organizationType = organizationType;
	}



	public String getProfession() {
		return profession;
	}



	public void setProfession(String profession) {
		this.profession = profession;
	}



	public String getTelephone() {
		return telephone;
	}



	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}



	public String getCustomerName() {
		return customerName;
	}



	public void setCustomerName(String customer) {
		this.customerName = customer;
	}



	public String getCustomerType() {
		return customerType;
	}



	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}



	public String getHouseNumber() {
		return houseNumber;
	}



	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}



	public CustSearchVO() {
		super();
	}



	public String getParticipantType() {
		return participantType;
	}



	public void setParticipantType(String participantType) {
		this.participantType = participantType;
	}



	public String getHouseIds() {
		return houseIds;
	}



	public void setHouseIds(String houseIds) {
		this.houseIds = houseIds;
	}

	public Long getHouseId() {
		return houseId;
	}

	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}

	public Boolean getOnlyInDate() {
		return onlyInDate;
	}

	public void setOnlyInDate(Boolean onlyInDate) {
		this.onlyInDate = onlyInDate;
	}

	public Long getClientId() {
		return clientId;
	}

	public void setClientId(Long clientId) {
		this.clientId = clientId;
	}



}
